package com.zhuiyun.pm.client.bid.chat.service;

import com.zhuiyun.pm.client.action.entity.GoodsEntity;
import com.zhuiyun.pm.client.bid.chat.entity.OrderInfo;
import com.zhuiyun.pm.result.CommonResult;

/**
 * @author lyp
 * @description 存储出价记录服务
 * @date 2023/3/16 15:23
 * @param
 * @param: null
 * @return null
 */
public interface BidRecordService {

    /**
     * 批量存储记录
     * @param key
     * @return
     */
    CommonResult insertList(String key);

    /**
     * @author lyp
     * @description 拍卖结束生成订单
     * @date 2023/3/20 20:34
     * @param: orderInfo
     * @return int
     */
    int saveEndOfAuctionInfo(OrderInfo orderInfo);


    /**
     * @author lyp
     * @description 根据物品id获取物品信息
     * @date 2023/3/23 19:09
     * @param: id
     * @return GoodsEntity
     */
    GoodsEntity getItemInfoById(Integer id);
    /**
     * @description: 拍卖结束
     * @author: dongdong
     * @date: 2023/4/2 19:45
     * @param: [roomId]
     * @return: int
    **/
//    int auctionClose(Integer id);
}
